function SrodneDelatnostiCreate(delid,delid2){
	delid = parseInt(delid);
	delid2 = parseInt(delid2);
	if(delid>0 && delid2>0){
		LoadRSDoc("delatnosti.php?a=family&mod=new&delid="+delid+"&delid2="+delid2,'afterSrodneDelatnostiCreate(\''+delid+'\')');
	}
}
function afterSrodneDelatnostiCreate(response,delid){
	var tmp = response.split("{!}",2);
	var code = parseInt(tmp[0]);
	var msg = tmp[1];
	alert(msg)
	if(!code){
		LoadRSDoc("delatnosti.php?a=family&filter_del="+delid,'setContent');
	}
}
function afterSrodneDelatnostiAdd(response,delid){
	var tmp = response.split("{!}",2);
	var code = parseInt(tmp[0]);
	var msg = tmp[1];
	if(!code){
		LoadRSDoc("delatnosti.php?a=family&filter_del="+delid,'setContent');
	}else{
		alert(msg);
	}
}
function afterSrodneDelatnostiDelete(response){
	var tmp = response.split("{!}",3);
	var code = parseInt(tmp[0]);
	var msg = tmp[1];
	var ndel = tmp[2];
	alert(msg);
	if(!code){
		var ndel = parseInt(ndel);
		ndel = ndel>0?ndel:"";
		LoadRSDoc("delatnosti.php?a=family&filter_del="+ndel,'setContent');
	}
}